package com.example.cwproject.utils;

import org.springframework.stereotype.Component;

import java.util.Random;

@Component
public class CharUtils {
    /**
     * 随机数6位生成
     * @return
     */
    public static String randomVerify () {
        Random random = new Random();
        String result = "";
        for (int i=0; i<6; i++)
        {
            result += random.nextInt(10);
        }
        return result;
    }
}
